<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

$factory->define(\App\Models\Goods::class, function (Faker $faker) {
    return [
        "class_id" => rand(1,3),
        "class_name" => "aaa",
        "goods_name" => $faker->name,
        "image" => "21,22,23",
        "sell_price" =>rand(10,1000),
        "original_pirce" => rand(100,1200),
        "sales_volume" => rand(10,500),
        "detail"=> "21,22,23",
        "hot" => rand(0,1),
        "selected" => 0,
        "type_id" => 4
    ];
});
